package com.zzx.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzx.common.core.page.TableDataInfo;
import com.zzx.common.utils.PageUtils;
import com.zzx.business.domain.TbFlow;
import com.zzx.business.vo.TbFlowVo;
import com.zzx.business.mapper.TbFlowMapper;
import com.zzx.business.service.ITbFlowService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 流程信息Service业务层处理
 *
 * @author Zzx
 * @date 2025-05-26
 */
@Service
public class TbFlowServiceImpl extends ServiceImpl<TbFlowMapper, TbFlow> implements ITbFlowService {

    @Override
    public TableDataInfo<TbFlowVo> queryList(TbFlowVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TbFlowVo> queryAll(TbFlowVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TbFlowVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
